﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace DosTexPrj.Core.Models
{
    [DataContract]
    public class YarnOrder : EntityBaseWithIntIDType
    {
        [DataMember]
        public virtual DateTime OrderDate { get; set; }

        [DataMember]
        public virtual DateTime DeliveryDate { get; set; }

        [DataMember]
        public virtual bool IsDeliveredBefore { get; set; }

        [DataMember]
        public virtual int NumberOfDateExtensionDelivery { get; set; }

        [DataMember]
        public virtual string DeliveryAddress { get; set; }

        [DataMember]
        public virtual Supplier Supplier { get; set; }

        [DataMember]
        public virtual Order BelongToOrder { get; set; }

        [DataMember]
        public virtual OrderStatus OrderStatus { get; set; }

        [DataMember]
        public virtual PaymentMethod PaymentMethod { get; set; }

        [DataMember]
        public virtual DeliveryMethod DeliveryMethod { get; set; }

        [DataMember]
        public virtual IList<YarnOrderDetail> YarnOrderDetails { get; set; }

        public YarnOrder()
        {
            this.YarnOrderDetails = new List<YarnOrderDetail>();
        }
    }
}